<%--
  Created by IntelliJ IDEA.
  User: 13695
  Date: 2022/3/21
  Time: 17:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/doAdd" method="post">
    <table>
        <tr>
            <td>人名</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td>性别</td>
            <td><input type="radio" value="boy" name="sex">男</td>
            <td><input type="radio" value="girl" name="sex">女</td>
        </tr>
        <tr>
            <td>年龄</td>
            <td><input type="number" name="age"></td>
        </tr>
        <tr>
            <td>爱好</td>
            <td><input type="checkbox" name="hobby" value="java">java天下第一</td>
            <td><input type="checkbox" name="hobby" value="python">python勇闯天涯</td>
            <td><input type="checkbox" name="hobby" value="golang">golang顶天立地</td>
        </tr>
        <tr>
            <td>亲属名称</td>
            <td><input type="text" name="parents[0].name"></td>
        </tr>
        <tr>
            <td>亲属性别</td>
            <td><input type="text" name="parents[0].sex"></td>
        </tr>
        <tr>
            <td>亲属名称</td>
            <td><input type="text" name="parents[1].name"></td>
        </tr>
        <tr>
            <td>亲属性别</td>
            <td><input type="text" name="parents[1].sex"></td>
        </tr>
        <tr>
            <td>宠物名</td>
            <td><input type="text" name="cat.name"></td>
        </tr>
        <tr>
            <td>宠物品种</td>
            <td><input type="text" name="cat.species"></td>
        </tr>
        <tr>
            <td>宠物生日</td>
            <td><input type="date" name="cat.birth"></td>
        </tr>
        <tr>
            <td><input type="submit"></td>
        </tr>
    </table>
</form>
</body>
</html>
